package com.zwy.service;

import jakarta.servlet.http.HttpServletRequest;
import me.zhyd.oauth.model.AuthResponse;

/**
 * @author zwy
 * @version 1.0
 * @description: OauthService  封装Oauth2.0的登录逻辑
 * @date 2025/9/19 09:03
 */
public interface OauthService {
    /**
     * 处理登录逻辑
     * @param authResponse 登录信息
     * @param request 请求
     * @param type 登录类型
     * @return 登录成功后的用户信息
     */
    String handleLogin(AuthResponse authResponse, HttpServletRequest  request,Integer type);
}
